package com.zhuiYun.project.api.order.mapper;

import com.zhuiYun.project.api.order.entity.OrdersAfterSales;
import com.zhuiYun.project.common.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

/**
 * @Description: 售后信息添加
 * @ClassName: OrdersAfterSalesMapper
 * @Author: YB
 * @Date: 2023/4/12 15:51
 * @Version: 1.0
 */
public interface OrdersAfterSalesMapper extends BaseMapper<OrdersAfterSales> {

    @Insert("insert into orders_after_sales(orders_type,orders_cause,orders_describe,image_id,del_flag) " +
            "values(#{ordersType},#{ordersCause},#{ordersDescribe},#{imageId},#{delFlag})")
    @Options(useGeneratedKeys = true,keyColumn = "id",keyProperty = "id")
    int  AfterSalesList(OrdersAfterSales ordersAfterSales);
}
